package com.yxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxx.entity.Album;
import com.yxx.entityModel.vo.query.AlbumQuery;
import com.yxx.entityModel.vo.request.AlbumRequest;
import com.yxx.entityModel.vo.response.AlbumBackResponse;
import com.yxx.entityModel.vo.response.AlbumResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/2/1
 * @apiNote
 */
@Repository
public interface AlbumMapper extends BaseMapper<Album> {
    /**
     * 根据id查询照片相册信息
     * @param albumId
     * @return
     */
    AlbumBackResponse selectAlbumInfoById(Integer albumId);

    /**
     * 分页查询后台相册列表信息
     * @param albumQuery
     * @return
     */
    List<AlbumBackResponse> selectAlbumInfoListVO(@Param("param") AlbumQuery albumQuery);

    /**
     * 根据id查询相册信息
     * @param albumId
     * @return
     */
    AlbumRequest selectAlbumById(@Param("albumId") Integer albumId);

    /**
     * 查看相册列表
     * @return
     */
    List<AlbumResponse> selectAlbumVOList();
}
